import axios from 'axios'
import { request } from '@/utils/request'

//首页 广告位
export function GetAds() {
    const url = request.baseURL + '/api/wap/Index/GetAds';
    const data = {
        callback: 'callback'
    };
    return axios.get(url, {
        params: data
    }).then((res) => {
        return Promise.resolve(res.data);
    });
};



//首页 项目
export function GetProjects() {
    const url = request.baseURL + '/api/wap/Index/GetProjects';
    const data = {
        area:'',
        callback: 'callback'
    };
    return axios.get(url, {
        params: data
    }).then((res) => {
        return Promise.resolve(res.data);
    });
};



//首页 筑功者
export function GetZgz() {
    const url = request.baseURL + '/api/wap/Index/GetZgz';
    const data = {
        area:'',
        callback: 'callback'
    };
    return axios.get(url, {
        params: data
    }).then((res) => {
        return Promise.resolve(res.data);
    });
};

//首页 筑功者
export function GetJobs() {
    const url = request.baseURL + '/api/wap/Index/GetJobs';
    const data = {
        area:'',
        callback: 'callback'
    };
    return axios.get(url, {
        params: data
    }).then((res) => {
        return Promise.resolve(res.data);
    });
};
//首页 公司
export function GetJobsWithBus() {
    const url = request.baseURL + '/api/wap/Index/GetJobsWithBus';
    const data = {
        area:'',
        callback: 'callback'
    };
    return axios.get(url, {
        params: data
    }).then((res) => {
        return Promise.resolve(res.data);
    });
};